← Back
Editing: ip-list-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./utils-lib-legacy.js?v=1765440387","./index-legacy93.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index-legacy449.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./site-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./validator-legacy.js?v=1765440387","./useStore-legacy3.js?v=1765440387"],function(e,n){"use strict";var r,i,l,u,a,o,c,s,f,y,m,p,d,v,g,b,h,j,_,k,x,A,L,S,w,I;return{setters:[function(t){r=t.aM,i=t.k,l=t.a0,u=t.W},function(t){a=t._},function(t){o=t.c,c=t.w,s=t.g,f=t.p,y=t.q,m=t.v,p=t.e,d=t.A,v=t.x,g=t.M,b=t.y,h=t.C},function(t){j=t.p,_=t.q,k=t.r,x=t.u,A=t.v,L=t.h,S=t.w,w=t.x,I=t.T},null,null,null,null,null,null],execute:function(){e("default",o({__name:"ip-list",setup:function(e){c(function(){return L.value.ip_limit},function(t){t?A(t):(S.white=[],S.black=[])},{deep:!0});var n=s(function(){return"ipWhiteList"===j.value?_.value:k.value}),o=r({options:[{type:"button",label:"添加IP".concat("ipBlackList"===j.value?"黑":"白","名单"),active:!0,onClick:x}]}).BtOperation;return f(function(){A(L.value.ip_limit)}),function(e,r){var c=i,s=l,f=a,x=u;return y(),m("div",null,[p(f,null,{"header-left":d(function(){return[p(v(o))]}),content:d(function(){return["ipWhiteList"===v(j)?(y(),g(c,{key:0,ref_key:"ipWhiteListRef",ref:_,data:v(S).white,"max-height":390,column:v(w)},{empty:d(function(){return t(r[0]||(r[0]=[b("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])):h("",!0),"ipBlackList"===v(j)?(y(),g(c,{key:1,ref_key:"ipListRef",ref:k,data:v(S).black,"max-height":390,column:v(w)},{empty:d(function(){return t(r[1]||(r[1]=[b("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])):h("",!0)]}),"footer-left":d(function(){return[p(s,{"table-ref":v(n),options:v(I)},null,8,["table-ref","options"])]}),_:1}),"ipBlackList"!==v(j)?(y(),g(x,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意:设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):h("",!0)])}}}))}}})}();
Save File
Cancel